package com.fzg.common.demo.string;

import cn.hutool.core.util.HexUtil;
import lombok.extern.slf4j.Slf4j;

/**
 * create by fzg
 * 2022/12/12 10:58
 */

@Slf4j
public class StrUtilDemo {

    public static void main(String[] args) {
//        boolean b = StrUtil.hasBlank(" ");
//        boolean b1 = StrUtil.hasEmpty(" ");
//        log.info("是不是为空：{}",b);
//        log.info("是不是为空：{}",b1);

        String hexStr = HexUtil.encodeHexStr("好难受！");
        log.info(hexStr);

        String s = HexUtil.decodeHexStr("e5a5bde99abee58f97efbc81");
        log.info(s);
    }

}
